FROM node

RUN mkdir /src
WORKDIR /src
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org && cnpm install egg-init -g
ADD app/package.json /src/package.json
RUN cnpm install

EXPOSE 3000

CMD cd app && cnpm start